<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>回答</title>
	<link rel="stylesheet" href="__VIEW__/Index/css/answer.css" />
	<link rel="stylesheet" type="text/css" href="__VIEW__/Index/css/css.css">
	<hdjs/>
	<script type="text/javascript" src="__VIEW__/Index/js/js.js"></script>
</head>
<body> 
	<include file='__VIEW__/Index/header.html'/>

	<!-- 主要内容开始 -->
	<div id="main">
		<div class="left">
			<div class="nav">
				<!-- <ul>
					<li><a href="">全部问题</a></li>
					<li><span>&gt;</span></li>
					<li class="over">
					<a href="">{$cname}</a>
					</li>
				</ul> -->
			</div>
			<div class="answer_part">
				<div class="a_p_t">
					<h3>{$que.qname}</h3>
					<div class="out">
						<ul> 
							<li class="pos">
							<a href=""><if value="{$que.uid}">{$que.username}<else>匿名网友</if></a>
							</li>
							<li>5级</li>
							<li>被回答<span>{$que.anum}</span>次</li>
							<li>{$que.qtime|date:'Y-m-d H:i',@@}</li>
						</ul>
						<p class="jubao"><a href="javascript:void(0)">检举</a><i></i></p>
					</div>
				</div>
				
				<div class="a_p_b">
					<p class="high" style="height:20px;"></p>
					<div class="con" style="margin-top:0">
						<a href="" class="u_pic" ><img src="__VIEW__/Index/images/answer/u_pic.jpg" alt="" /></a>
						<form id="user_answer">
							<input type="hidden" value="{$que.qid}" name="qid" />
							<textarea name="answer" id="" cols="30" rows="10"></textarea>
							<input type="hidden" name="qid" value="{$que.qid}" />
							<a href="" class="music"><i></i>音乐</a>
							<input type="submit" value="提交回答" class="sub" />
							<label for="" class="niming"><input type="checkbox" name="" id=""  /><span>匿名</span></label>
						</form>
					</div>
				</div>
			</div>

			<div class="all_ans">
				<h3><span>全部回答</span><b></b></h3>
				<ul>
				<list from='$ans' name='$a'>
					<li>
						<div class="u_pic">
							<p class="pos">
								<a href=""><img src="__VIEW__/Index/images/answer/a_user/niming.png" alt="" /></a>
							</p>
						</div>
						<div class="info">
							<div class="detail"><a href="">
							<if value="{$a.uid}">{$a.username}<else>匿名网友</if>
							</a>采纳率：<span>13%</span><if value="{$a.grade}">{$a.grade}<else>0</if> 级<b>{$a.atime|date:'Y-m-d H:i',@@}</b></div>
							<p>{$a.answer}</p>
							<div class="zan">
			<script type="text/javascript">
			 <!--
				  $(document).ready(function(e) {
				    $('a.zhan').click(function(){
				  var left = parseInt($(this).offset().left)+366, top =  parseInt($(this).offset().top)-150, obj=$(this);
				  $(this).append('<div id="zhan"><b>+1<\/b></\div>');
				  $('#zhan').css({'position':'absolute','z-index':'1', 'color':'#f0f0f0','left':left+'px','top':top+'px'}).animate({top:top-10,left:left+10},'slow',function(){
				   $(this).fadeIn('fast').remove();
				   var Num = parseInt(obj.find('span').text());
				       Num++;
				    obj.find('span').text(Num);
				  });
				  return false;
				 });
				 });
			 //-->
			</script>
			<style type="text/css">
				#zhan{display: none;}
			</style>
								<a href="#" aid={$a.aid} class="zhan"><span>{$a.aclick}</span></a>
								<p><a href="{|U:'accept',array('aid'=>$a['aid'],'qid'=>$que['qid'])}" onclick="return confirm('采纳后将关闭回答和其他答案')">采纳</a><i></i></p>
							</div>
						</div>
						<h5 style="clear:both;"></h5>
					</li>
				</list>
				</ul>
			</div>
		</div>
		<div class="right"></div>
	</div>
	<!-- 主要内容结束 -->
	<include file='__VIEW__/Index/bottom.html'/>
</body>
</html>